package ma.ensao.egicom.core.dao.interfaces;

import java.util.List;

import ma.ensao.egicom.core.model.Product;

public interface ProductDAO {

    public void save(Product transientInstance);

    public void delete(Product persistentInstance);

    public Product findById(java.lang.Long id);

    public List findByProperty(String propertyName, Object value);

    public List findById(Object id);

    public List findByLabel(Object label);

    public List findByPrice(Object price);

    public List findByCategory(int category);

    public List findAll();

    public List<Product> findNewProducts();
}
